import config from '@/config/'

import container from '@/components/frame/container'

import carsGPS from '@/views/cars/carsgps'
import carsreplay from '@/views/cars/carsreplay'
import carsManage from '@/views/cars/carsManage'
import carsadd from '@/views/cars/carsadd'
import updatecar from '@/views/cars/carsupdate'

import login from '@/views/login'

const routers = [{
        path: '/',
        redirect: '/gps/index',
        hiddenMenu: true
    },
    // {
    //     path: '/login',
    //     component: login,
    //     hiddenMenu: true
    // },
    /*{
        path: '/gailan',
        name: '概览',
        component: container,
        redirect: '/gailan/index',
        redirect: '/cars/gps',
        children: [{
            name: '概览',
            path: 'index',
            hiddenMenu: true,
            redirect: '/cars/gps',
            component: carsIndex
        }]
    },*/
    {
        path: '/gps',
        name: '定位监控',
        component: container,
        redirect: '/gps/index',
        iconName: 'fa fa-th',
        children: [{
            name: '定位监控',
            path: 'index',
            hiddenMenu: true,
            component: carsGPS
        }]
    },
    {
        path: '/replay',
        name: '轨迹回放',
        component: container,
        redirect: '/replay/index',
        iconName: 'fa fa-repeat',

        children: [{
            name: '定位监控',
            path: 'index',
            hiddenMenu: true,
            component: carsreplay
        }, ]
    },
    {
        path: '/cars',
        name: '车辆管理',
        component: container,
        redirect: '/cars/carsmanage',
        iconName: 'fa fa-automobile',
        children: [{
                name: '车辆管理',
                path: 'carsmanage',
                hiddenMenu: true,
                component: carsManage
            },
            {
                name: '添加车辆',
                path: 'carsadd',
                hiddenMenu: true,
                component: carsadd
            },
            {
                name: '修改车辆',
                path: 'updatecar',
                hiddenMenu: true,
                component: updatecar
            }
        ]
    },
]


export default routers;